package com.yw.util.http;

import org.apache.log4j.Logger;

public class JettyFactory {
	private Logger log = Logger.getLogger(JettyFactory.class);
	private static JettyFactory jetty;

	public static JettyFactory getInstance() {
		if (null == jetty) {
			jetty = new JettyFactory();
		}
		return jetty;
	}

	public void startService(String[] config) throws Exception {
			org.mortbay.jetty.spring.Main.main(config);
	}
}
